import { user } from "../../api/";
import { pipeline } from "../../helper/fetching";

export function loginByName(payload = {}) {
  return pipeline(user.api_login, payload);
}

export function GetMobileCode(payload = {}) {
  return pipeline(user.api_getMobileCode, payload);
}

export function loginByCode(payload = {}) {
  return pipeline(user.api_loginCode, payload);
}

export function userRegister(payload = {}) {
  return pipeline(user.api_register, payload);
}

export function api_mobile_onetep(payload = {}) {
  return pipeline(user.api_mobile_onetep, payload);
}

export function forgetPassword(payload = {}) {
  return pipeline(user.api_forgetPassword, payload);
}

export function emailReset(payload = {}) {
  return pipeline(user.api_email_reset, payload);
}
